﻿

namespace BJYJ_Admin.Core.Enum
{
    /// <summary>
    /// 系统错误码
    /// </summary>
    [ErrorCodeType]
    [Description("系统错误码")]
    public enum ErrorCodeEnum
    {

        /// <summary>
        /// 验证码错误
        /// </summary>
        [ErrorCodeItemMetadata("验证码错误")]
        U0001,

        /// <summary>
        /// 账号不存在
        /// </summary>
        [ErrorCodeItemMetadata("账号不存在")]
        U0002,

        /// <summary>
        /// 密码不正确
        /// </summary>
        [ErrorCodeItemMetadata("密码不正确")]
        U0003,

        /// <summary>
        /// 账号已锁定
        /// </summary>
        [ErrorCodeItemMetadata("账号已锁定")]
        U0004,

        /// <summary>
        /// 账号已存在
        /// </summary>
        [ErrorCodeItemMetadata("账号已存在")]
        U0005,
        /// <summary>
        /// 旧密码不正确
        /// </summary>
        [ErrorCodeItemMetadata("旧密码不正确")]
        U0006,
        /// <summary>
        /// 账号已禁用
        /// </summary>
        [ErrorCodeItemMetadata("账号已禁用")]
        U0007,


        /// <summary>
        /// 操作失败
        /// </summary>
        [ErrorCodeItemMetadata("操作失败")]
        OP0000,

        /// <summary>
        /// 添加失败
        /// </summary>
        [ErrorCodeItemMetadata("添加失败")]
        OP0001,

        /// <summary>
        /// 更新失败
        /// </summary>
        [ErrorCodeItemMetadata("更新失败")]
        OP0002,

        /// <summary>
        /// 删除失败
        /// </summary>
        [ErrorCodeItemMetadata("删除失败")]
        OP0003,

        /// <summary>
        /// 密码重置失败
        /// </summary>
        [ErrorCodeItemMetadata("密码重置失败")]
        OP0004,


    }
}
